<%--
  Created by IntelliJ IDEA.
  User: yutao
  Date: 2017/5/18
  Time: 10:42
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ include file=".././common/taglibs.jsp" %>
<html>
<head>
    <title>Title</title>
    <script src="${ctx}/js/views/specially/dataDic.js"></script>
</head>
<body ng-app="myApp" style="overflow:scroll;overflow-x:hidden">
<core:import url="../common/pageHead.jsp">
    <core:param name="title" value="特约商户数据字典"/>
</core:import>
<div ng-controller="queryCtrl" class="container-fluid">
    <form id="queryForm" name="queryForm" action="${ctx}/specially/dataDic/cache/search" class="form-inline" autocomplete="off">
        <table table-detail>
            <tr>
                <td class="text-right">
                    字典名：
                </td>
                <td>
                    <input type="text" class="form-control" ng-model="vm.queryBean.name"/>
                </td>
                <td class="text-right">
                    列名：
                </td>
                <td>
                    <input type="text" class="form-control" ng-model="vm.queryBean.code"/>
                </td>
                <td class="text-right">
                    列值项：
                </td>
                <td>
                    <input type="text" class="form-control" ng-model="vm.queryBean.value"/>
                </td>
            </tr>
            <tr align="center">
                <td colspan="6">
                    <button type="button" ng-click="vm.queryDetail()" class="btn btn-default">查询</button>
                    <button type="button" ng-click="vm.resetForm()" class="btn btn-default">重置</button>
                </td>
            </tr>
        </table>
    </form>
    <div>
    <shiro:hasPermission name="specially_data_refresh">
        <div class="text-left">
            <button type="button" ng-click="vm.refresh()">重新获取</button>
            <%--<button type="button" ng-click="vm.downloadCheckFile()">下载</button>--%>
        </div>
    </shiro:hasPermission>
        <table table-detail>
            <thead>
            <tr>
                <th>字典项名 </th>
                <th>列名 </th>
                <th>列值项 </th>
            </tr>
            </thead>
            <tbody ng-repeat="bean in vm.pagination.list track by $index">
            <tr>
                <td>{{bean.name}}</td>
                <td>{{bean.code}}</td>
                <td>{{bean.value}}</td>
            </tr>
        </table>

        <tfoot>
        <tr>


        </tr>
        </tfoot>

    </div>
    <core:import url="../common/pageFoot.jsp"/>
</div>
<core:import url="../common/nav.jsp"/>
</body>
</html>
